﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Bes.Swsp.ToolBox
{
  public class ProgressEventArgs : EventArgs
  {
    public ProgressEventArgs(int progress, int total, string message, bool canCancel = false)
    {
      Progress = progress;
      Total = total;
      Message = message;
      Cancel = false;
      CanCancel = canCancel;
    }

    public int Progress { get; private set; }
    public int Total { get; private set; }
    public string Message { get; private set; }
    public bool CanCancel { get; private set; }
    public bool Cancel { get; set; }
  }
}
